package radio;



import http.Request;
import http.Response;

import java.io.IOException;

/**
 * Created by zzf on 2017/4/26.
 */
public interface ServerListener {
     void onError(String error);
     void onAccept() ;
     void onAccepted() ;
     void onRead(Request request) ;
     void onWrite(Response response) throws IOException;
     void onClosed(Request request) ;

}
